/**
 *  @FileName: EmployeeTest.java
 *  @Last Modified Date: CharlW 2016.3.13
 *  @Description: 给出EmployeeTest类，该类实例化2个Employee类的实例，
 *  	并调用方法设置变量的值。
 */
 
import java.io.*;

public class EmployeeTest {
	public static void main(String []args) {
		/* 使用构造器创建两个对象 */
		Employee empOne = new Employee("James Smith");
		Employee empTwo = new Employee("Mary Anne");
		
		/* 调用这两个对象的成员和方法 */
		empOne.empAge(26);
		empOne.empDesignation("Senior Software Engineer");
		empOne.empSalary(1000);
		empOne.printEmployee();
		
		empTwo.empAge(21);
		empTwo.empDesignation("Software Engineer");
		empTwo.empSalary(500);
		empTwo.printEmployee();
	}
}